import QtQuick 2.0
import QtQuick.Controls 1.4
import "../Common/Compoments"

Rectangle {
    id: loadMainMenu

    width: (parent.width < parent.height ? parent.width : parent.height) * 0.2
    height: loadMainMenu.width / 3
    color:"#00ffffff"

    x: parent.width - width - 10
    y: parent.height * 0.03

    Flow
    {
        layoutDirection: Qt.RightToLeft
        anchors.fill: parent
        spacing: parent.height * 0.1

        LQBaseButton
        {
            id: btnClose
            visible: m_bShowLoginToolsButton
            height: loadMainMenu.height - 10
            width: height
            m_btnTextValue: "X"

            onSignalLeftClick:
            {
                Qt.quit();
            }
        }

        LQBaseButton
        {
            id: btnMin
            visible: !m_bShowLoginToolsButton &&m_strSettingPanelType =="Dialog"
            height: loadMainMenu.height - 10
            width: height
            m_btnTextValue: "Min"
        }

        LQBaseButton
        {
            id: btnSet
            visible: !m_bShowLoginToolsButton
            height: loadMainMenu.height - 10
            width: height
            m_btnTextValue: "Set"
        }



        /*
        //关闭
        LQCheckButton
        {
            height: loadMainMenu.height - 1
            width: height
            visible: m_bShowLoginToolsButton
            m_strPrefix: "/Loader/"
            m_normalbkcolor: g_Colors.m_cNullBackgroundColor
            m_strButtonId: "loader_ExitApp"
            m_hoverbkcolor: g_Colors.m_cLoginPanelLoginButtonBackground

            onSignalLeftClick: {
                console.log("app exit....");
            }
        }

        //最小化
        LQCheckButton
        {
            height: loadMainMenu.height - 1
            width: height
            visible: m_bShowLoginToolsButton &&m_strSettingPanelType =="Dialog"
            m_strPrefix: "Loader/"
            m_normalbkcolor: g_Colors.m_cNullBackgroundColor
            m_strButtonId: "loader_MiniWindow"

            onSignalLeftClick: {
                console.log("app min....");
            }
        }

        //服务器设置
        LQCheckButton
        {
            height: loadMainMenu.height - 1
            width: height
            visible: m_bShowLoginToolsButton
            m_strPrefix: "Loader/"
            m_normalbkcolor: g_Colors.m_cNullBackgroundColor
            m_strButtonId: "loader_ServerSet"

            onSignalLeftClick: {
                console.log("app server set....");
            }
        }
        */
    }
}
